@import '~@/common/utils/styleVar.less';

/***************  通用样式分隔符  ***************/

//输入框placeholder颜色
.cpt_placeholder(@color) {
  &::-webkit-input-placeholder {
    display: flex;
    align-items: center;
    font-size: @cpt_font_size;
    color: @color;
  }

  &::-moz-placeholder {
    display: flex;
    align-items: center;
    font-size: @cpt_font_size;
    color: @color; //Mozilla Firefox 19+
  }

  &:-moz-placeholder {
    display: flex;
    align-items: center;
    font-size: @cpt_font_size;
    color: @color; //Mozilla Firefox 4 to 18
  }

  &:-ms-input-placeholder {
    display: flex;
    align-items: center;
    font-size: @cpt_font_size;
    color: @color; //Internet Explorer 10-11
  }
}

.cpt_placeholder_normal {
  input {
    .cpt_placeholder(@cpt_grey_deep);
  }
}

.cpt_placeholder_error {
  input {
    .cpt_placeholder(@cpt_red);
  }
}

//右边距10px
.cpt_margin_10 {
  margin-right: 10px;
}
//单行超出显示省略号
.cpt_single_ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
//整框填充外部并且内部居中
.inner_center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 100%;
}

//form水平化
.cpt_form_horizon {
  display: flex;
  align-items: center;

  .el-form-item {
    margin: 0;
    margin-right: 10px;

    .el-form-item__label {
      padding-right: 10px;
      font-size: @cpt_font_size_middle;
      // text-align: left !important;
    }
  }

  .slot_btn {
    position: relative;
    display: flex;
    flex-grow: 1;
    align-items: center;
  }
}
//灰色背景框，用于展示内容的背景板
.cpt_grey_background {
  width: 100%;
  min-height: @cpt_line_height;
  padding: 0 10px;
  text-align: left;
  background-color: @cpt_grey_light;
  border: 1px solid @cpt_grey;
  border-radius: @cpt_border_radius;
}
//灰色背景框，用于展示禁用项目
.cpt_grey_disabled {
  width: 100%;
  min-height: @cpt_line_height;
  padding: 0 10px;
  color: @cpt_grey_disabled;
  text-align: left;
  word-break: break-all;
  background-color: @cpt_grey_light;
  border: 1px solid @cpt_grey;
  border-radius: @cpt_border_radius;
}
//下拉树弹出框样式
.cpt_select_tree_pop {
  .el-scrollbar {
    max-height: 200px;
    overflow: auto;
  }

  .el-scrollbar__wrap {
    max-height: 100%;
    margin: 0 !important;
    overflow: hidden;
  }

  .el-select-dropdown__list {
    height: 100%;
    padding: 10px 0;
    overflow: hidden;
  }

  .el-select-dropdown__item {
    height: 100%;
    padding: 0;
    overflow: auto;
  }

  .el-tree {
    overflow: hidden;

    .el-tree-node__content {
      font-weight: initial !important;
    }
  }

  ._ehl_form {
    position: relative;

    .el_form_item_v {
      margin: 0 !important;

      & > .el-form-item__label {
        float: none !important;
      }

      & > .el-form-item__content {
        margin: 0 !important;
      }
    }

    .el-form-item {
      .el-form-item__label {
        line-height: @cpt_line_height;
        text-align: right;
        .cpt_single_ellipsis();
      }

      .el-form-item__content {
        display: flex;
        align-items: center;
        height: 100%;
        line-height: @cpt_line_height;

        .content_layout {
          display: flex;
          align-items: center;
          width: 100%;
        }

        .el-form-item__error {
          white-space: nowrap;
        }
      }
    }
  }
}

//圆角背景框
.cpt_round_card {
  align-items: center;
  padding: 15px;
  background: @cpt_white;
  border-radius: @cpt_border_radius;
  box-shadow: 0 4px 10px 0 @cpt_grey_shadow;
}
//圆角背景框-上部分
.cpt_round_card_up {
  .cpt_round_card();

  position: relative;
  border-radius: @cpt_border_radius @cpt_border_radius 0 0;
  box-shadow: none;
}
//圆角背景框-添加在上部分的下分割线
.cpt_round_card_up_devide {
  &::after {
    position: absolute;
    right: 15px;
    bottom: 0;
    left: 15px;
    height: 1px;
    content: '';
    background-color: @cpt_grey;
  }
}
//圆角背景框-下部分
.cpt_round_card_down {
  .cpt_round_card();

  border-radius: 0 0 @cpt_border_radius @cpt_border_radius;
}

//按钮基础样式
.cpt_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: @cpt_line_height;
  padding: 0 10px;
  font-family: 'iconfont' !important; /* stylelint-disable-line font-family-no-missing-generic-family-keyword */
  font-size: @cpt_font_size;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border: 1px solid;
  border-radius: @cpt_border_radius;

  &::before {
    margin-right: 5px;
  }
}
//单图标按钮
.cpt_btn_ico {
  font-family: 'iconfont' !important; /* stylelint-disable-line font-family-no-missing-generic-family-keyword */
  font-size: @cpt_font_size_middle;
  color: @cpt_main;
  cursor: pointer;
  user-select: none;
}
//蓝色按钮
.cpt_btn_blue {
  .cpt_btn();

  color: @cpt_white;
  background-color: @cpt_main;
  border-color: @cpt_main;

  &:hover {
    color: @cpt_white;
    background-color: @cpt_main_light;
    border-color: @cpt_main;
  }
}
//红白按钮
.cpt_btn_red_white {
  .cpt_btn();

  color: @cpt_red;
  background-color: @cpt_white;
  border-color: @cpt_red;

  &:hover {
    color: @cpt_white;
    background-color: @cpt_red;
    border-color: @cpt_red;
  }
}
//蓝白按钮
.cpt_btn_blue_white {
  .cpt_btn();

  color: @cpt_main;
  background-color: @cpt_white;
  border-color: @cpt_main;

  &:hover {
    color: @cpt_white;
    background-color: @cpt_main_light;
    border-color: @cpt_main;
  }
}
//白色按钮
.cpt_btn_white {
  .cpt_btn();

  color: @cpt_grey_deep;
  background-color: @cpt_white;
  border-color: @cpt_grey;

  &:hover {
    color: @cpt_white;
    background-color: @cpt_main_light;
    border-color: @cpt_main;
  }
}
//禁用按钮
.cpt_btn_disable {
  .cpt_btn();

  color: @cpt_white;
  cursor: not-allowed;
  background-color: @cpt_grey;
  border-color: @cpt_grey_light;

  &:hover {
    color: @cpt_white;
    background-color: @cpt_grey;
    border-color: @cpt_grey_light;
  }
}

//tab标签页样式
.cpt_tab {
  padding: 10px;
  font-size: @cpt_font_size;
  color: @cpt_grey_deep;
  text-align: center;
  cursor: pointer;
  border-top: 1px solid @cpt_grey;
  border-bottom: 1px solid @cpt_grey;
}
//tab标签页样式-选中
.cpt_tab_select {
  z-index: 1;
  margin: -3px;
  color: @cpt_white;
  background-color: @cpt_main;
  border-color: @cpt_main;
  border-radius: @cpt_border_radius;
}
//tab标签页样式-盒子
.cpt_tab_box {
  display: flex;
  flex-shrink: 0;
  align-items: center;

  .cpt_tab:first-child {
    border-left: 1px solid @cpt_grey;
  }

  .cpt_tab:last-child {
    border-right: 1px solid @cpt_grey;
  }
}

//文字前面增加小点
.cpt_before_point {
  display: flex;
  align-items: center;

  &::before {
    width: 10px;
    height: 10px;
    margin-right: 10px;
    content: '';
    border-radius: 50%;
  }
}
//文字前面增加小点-颜色自定义
.cpt_before_point_grey {
  .cpt_before_point();

  &::before {
    background: #d8d8d8;
  }
}

//自定义ttle样式
.cpt_tooltip {
  position: relative;

  &::after {
    position: absolute;
    bottom: 120%;
    left: 0;
    z-index: 1;
    min-width: 150px;
    padding: 8px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    visibility: hidden;
    content: attr(tooltip-data);
    background-color: #424141;
    border-radius: @cpt_border_radius;
    opacity: 0;
    transition: opacity 0.5s;
  }

  // &::after {
  //   position: absolute;
  //   bottom: 88%;
  //   left: 50%;
  //   visibility: hidden;
  //   content: '';
  //   border-color: #efba93 transparent transparent transparent;
  //   border-style: solid;
  //   border-width: 5px;
  //   opacity: 0;
  //   transition: opacity 0.5s;
  // }

  &:hover::before,
  &:hover::after {
    visibility: visible;
    opacity: 1;
  }
}

/***************  body样式分隔符  ***************/

//滚动条样式

* {
  scrollbar-color: @cpt_grey @cpt_grey_light;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

::-webkit-scrollbar-track {
  background-color: @cpt_grey_light;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: @cpt_grey;
  border-radius: 5px;
}

//表格筛选框
.el-table-filter {
  cursor: pointer;
}

//代码编辑器提示框
.CodeMirror-hints {
  z-index: 9999;
}

//ajax加载遮罩层
.el-loading-mask {
  background: @cpt_black_light;

  .el-loading-spinner {
    .el-icon-loading {
      font-size: 70px;
      color: @cpt_white;
    }

    .el-loading-text {
      color: @cpt_white;
    }
  }
}

//简单提示对话框
.el-message-box {
  display: flex;
  flex-direction: column;
  min-width: 20%;
  max-width: 80%;
  min-height: 20%;
  max-height: 80%;
  padding: 0;
  margin: 0 auto;
  margin-top: 15vh;
  border-radius: @cpt_border_radius;
  box-shadow: 0 2px 4px 0 @cpt_grey;

  .el-message-box__header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 20px 10px;
    border-bottom: 1px solid @cpt_grey;

    .el-message-box__title {
      font-size: @cpt_font_size_big;
    }
  }

  .el-message-box__content {
    flex-grow: 1;
    width: 100%;
    padding: 0;
    overflow: auto;
    font-size: @cpt_font_size_middle;
    text-align: center;

    .el-message-box__message {
      padding: 25px 15px;
      font-size: @cpt_font_size_middle;
      text-align: center;
      white-space: nowrap;
    }

    .el-message-box__input {
      padding: 10px 10px 0 10px;
      font-size: @cpt_font_size_middle;

      .el-input__inner {
        height: @cpt_line_height;
      }
    }
  }

  .el-message-box__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;

    button:first-child {
      .cpt_btn_white();

      width: 70px;
      height: 30px;
    }

    button:last-child {
      .cpt_btn_blue();

      width: 70px;
      height: 30px;
    }
  }
}

//导航栏样式
.el-menu {
  .el-menu-item {
    display: flex;
    align-items: center;
  }

  .is-active {
    color: @cpt_main !important;
  }
}

//气泡确认框
._ehl_confirm {
  padding: 10px 15px !important;
  background: @cpt_white;
  border: 1px solid @cpt_grey;
  border-radius: @cpt_border_radius !important;
  box-shadow: 0 4px 10px 0 @cpt_grey_shadow;

  .el-popconfirm__main {
    font-size: @cpt_font_size;
    color: red;
  }

  .el-button--primary {
    padding: 5px 8px;

    span {
      color: @cpt_white;
    }
  }

  .el-button--text {
    span {
      color: @cpt_main;
    }
  }
}

/***************  组件样式分隔符  ***************/

//表单样式
/deep/ ._ehl_form {
  position: relative;
  width: 100%;

  .el_form_item_v {
    margin: 0 !important;

    & > .el-form-item__label {
      float: none !important;
    }

    & > .el-form-item__content {
      margin: 0 !important;
    }
  }

  .el-form-item {
    .el-form-item__label {
      line-height: @cpt_line_height;
      text-align: right;
      .cpt_single_ellipsis();
    }

    .el-form-item__content {
      display: flex;
      align-items: center;
      height: 100%;
      line-height: @cpt_line_height;

      .content_layout {
        display: flex;
        align-items: center;
        width: 100%;
      }

      .el-form-item__error {
        white-space: nowrap;
      }
    }
  }

  ._ehl_form_resize {
    position: absolute;
    top: 50%;
    right: 0;
    width: 10px;
    height: 35px;
    cursor: col-resize;

    span {
      display: inline-block;
      vertical-align: middle;
    }
  }
}

//表格样式
/deep/ ._ehl_table_box {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 525px;

  .el-table {
    width: 100%;
    max-height: inherit !important;

    ._ehltable_odd_row {
      .el-table__cell {
        background-color: @cpt_grey_table_line_back;
      }
    }

    .el-table__body-wrapper {
      max-height: inherit !important;
    }

    th {
      height: @cpt_table_title_height;
      padding: 0;
      background: @cpt_grey_table_title_back !important;

      .cell {
        padding: 0 20px;
        font-size: @cpt_grey_table_title_size;
        font-weight: bold;
        color: @cpt_grey_table_title_font;
        white-space: nowrap;
      }
    }

    td {
      height: @cpt_table_line_height;
      padding: 0;
      background: @cpt_white;

      .cell {
        padding: 0 20px;
        font-size: @cpt_grey_table_line_size;
        color: @cpt_grey_table_line_font;
      }
    }

    .el-table__fixed-right {
      max-height: inherit !important;

      .el-table__fixed-body-wrapper {
        max-height: inherit !important;
      }
    }
  }

  ._ehl_pagination {
    margin-top: 20px;
  }
}

//自定义表格
/deep/ ._ehl_custable_fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  max-height: 100% !important;
}

/deep/ ._ehl_custable {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: @cpt_white;
  border-top: 1px solid @cpt_grey;
  // border-radius: @cpt_border_radius;

  .nodata_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px solid @cpt_grey;
    border-top: none;
  }

  ._ehl_custool {
    // position: sticky;
    // top: 0;
    // z-index: 2;
    position: relative;
    display: flex;
    width: 100%;
    height: @cpt_line_height;
    padding: 0 5px;
    border-right: 1px solid @cpt_grey;
    border-bottom: 1px solid @cpt_grey;
    border-left: 1px solid @cpt_grey;

    ._ehl_custitle {
      font-size: @cpt_font_size_middle;
    }

    ._ehl_cusbtnbox {
      position: absolute;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;

      ._ehl_cusbtn {
        margin-right: 10px;
        font-size: @cpt_font_size_middle;
        text-align: center;
        cursor: pointer;

        &::before {
          margin-right: 5px;
        }
      }
    }
  }

  ._ehl_cusdata {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;

    ._ehl_header_line {
      position: sticky;
      top: 0;
      z-index: 2;
    }

    ._ehltable_odd_row {
      background-color: @cpt_grey_table_line_back;
    }

    ._ehl_cusline {
      display: flex;
      width: 100%;

      .select_box {
        flex-grow: 0 !important;
        width: 60px !important;
      }

      & > div:first-child {
        border-left: 1px solid @cpt_grey;
      }

      ._ehl_cusitem_common {
        box-sizing: border-box;
        display: flex;
        flex-grow: 1;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 1px;
        min-height: 100%;
        padding: 5px;
        border-right: 1px solid @cpt_grey;
        border-bottom: 1px solid @cpt_grey;
      }

      ._ehl_header {
        ._ehl_cusitem_common();

        font-size: @cpt_grey_table_title_size;
        font-weight: bold;
        color: @cpt_grey_table_title_font;
        background: @cpt_grey_table_title_back;
      }

      ._ehl_cusitem {
        ._ehl_cusitem_common();

        font-size: @cpt_grey_table_line_size;
        color: @cpt_grey_table_line_font;

        /deep/ .el-form-item__content {
          justify-content: center;
        }
      }
    }
  }
}

//下拉树
/deep/ ._ehl_select_tree {
  width: 100%;
  height: @cpt_line_height;

  .select-trigger {
    height: 100%;
  }

  .el-input {
    height: 100%;

    .el-input__inner {
      .inner_center();

      font-size: @cpt_font_size;
      color: @cpt_grey_deep;
      border-radius: @cpt_border_radius;
    }

    .el-input__icon {
      .inner_center();
    }

    .el-input__validateIcon {
      display: none !important;
    }
  }
}

//下拉列表
/deep/ ._ehl_select {
  width: 100%;
  height: auto;
  min-height: @cpt_line_height;

  .el-input__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: @cpt_line_height;
    font-size: @cpt_font_size;
    line-height: 100%;
    color: @cpt_grey_deep;
    border-radius: @cpt_border_radius;
  }

  .el-input__icon {
    .inner_center();
  }

  .el-input__validateIcon {
    display: none !important;
  }
}

//输入框
/deep/ ._ehl_input_rows {
  height: auto !important;
}

/deep/ ._ehl_input {
  display: flex;
  align-items: center;
  width: 100%;
  height: @cpt_line_height;
  background: @cpt_white;
  border: 1px solid @cpt_grey;
  border-radius: @cpt_border_radius;

  &:focus-within {
    border-color: @cpt_main_light;
  }

  .el-input__inner {
    flex-grow: 1;
    height: 100%;
    padding: 0 10px;
    font-size: @cpt_font_size;
    line-height: 100%;
    color: @cpt_black;
    border: none;
  }

  .el-textarea__inner {
    flex-grow: 1;
    padding: 10px;
    font-size: @cpt_font_size;
    line-height: 100%;
    color: @cpt_black;
    border: none;
  }

  .el-input__suffix {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    .el-input__suffix-inner {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

/deep/ ._ehl_autocomplete {
  display: flex;
  align-items: center;
  width: 100%;
  height: @cpt_line_height;
  background: @cpt_white;
  border: 1px solid @cpt_grey;
  border-radius: @cpt_border_radius;

  .el-input {
    display: flex;
    height: 100%;

    input {
      height: 100%;
      border: none;
    }
  }

  .el-textarea__inner {
    flex-grow: 1;
    padding: 10px;
    font-size: @cpt_font_size;
    line-height: 100%;
    color: @cpt_black;
    border: none;
  }

  .el-input__suffix {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    .el-input__suffix-inner {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

/deep/ ._ehl_input_number {
  width: 100%;
  height: @cpt_line_height;

  .el-input-number__decrease,
  .el-input-number__increase {
    height: calc(@cpt_line_height / 2) !important;
    line-height: calc(@cpt_line_height / 2) !important;
  }

  .el-input {
    height: 100%;

    .el-input__inner {
      position: absolute;
      height: 100%;
      line-height: 100%;
      text-align: start;
    }
  }
}

//时间选择框
/deep/ ._ehl_date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  height: @cpt_line_height;

  ._ehl_daterange {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    // padding: 0 5px;

    .el-range-separator {
      display: flex;
      flex-shrink: 0;
      align-items: center;
      width: auto;
      padding: 0;
      line-height: @cpt_line_height;
    }

    .el-range-input,
    .el-input__inner {
      display: flex;
      align-items: center;
      height: 100%;
    }

    .el-input__icon {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .el-input__validateIcon {
      display: none;
    }
  }
}

//加减项框
/deep/ ._ehl_edit_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;

  .over_all {
    display: flex;
    align-items: center;
    margin-bottom: 20px;

    .singleForm {
      display: flex;
      flex: 1;
      flex-wrap: wrap;
      align-items: center;
      margin-right: 20px;
      overflow: hidden;
    }

    .singleBtn {
      flex-shrink: 0;
      font-size: 16px;

      .optBtn {
        font-size: 20px;
        color: @cpt_grey;
        cursor: pointer;

        &::before {
          margin-right: 5px;
        }
      }
    }
  }
}

//代码编辑器
/deep/ ._ehl_code_big {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100% !important;
  height: 100% !important;
}

/deep/ ._ehl_code {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: @cpt_font_size_middle;
  border: 1px solid #c4d0dd;
  border-radius: @cpt_border_radius;

  ._code_tool_right {
    color: @cpt_idea_black !important;
    background: #f7f7f7 !important;
  }

  ._code_tool {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0 20px;
    padding: 5px 0;
    color: white;
    background: @cpt_idea_black;

    .iconn {
      margin-right: 10px;
      font-size: @cpt_font_size_big;
      cursor: pointer;
    }

    .select_light {
      width: 150px;
      margin-right: 10px;

      .el-input__inner {
        color: @cpt_idea_black !important;
        background: @cpt_white !important;
        border-color: @cpt_grey_light;
      }
    }

    .select {
      width: 150px;
      margin-right: 10px;

      .el-input__inner {
        color: @cpt_white;
        background: @cpt_idea_black;
        border-color: #869afd;
      }
    }
  }

  .CodeMirror {
    flex-grow: 1;
    width: 100%;
    min-height: 100px;
    resize: vertical;
  }

  ._code_error_right {
    color: @cpt_red !important;
    background: @cpt_grey_light !important;
  }

  ._code_error {
    flex-shrink: 0;
    width: 100%;
    height: 100px;
    padding: 5px;
    overflow: auto;
    color: @cpt_red;
    background: @cpt_idea_black;
  }
}

//多选框组
/deep/ ._ehl_check_group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  height: 100%;

  .el-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: @cpt_line_height;
    padding: 0 10px;
    margin-right: 10px;
  }
}

//单选框组
/deep/ ._ehl_radio_group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  height: 100%;

  .el-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    height: @cpt_line_height;
    padding: 0 10px;
    margin-right: 10px;
  }
}

//分页
/deep/ ._ehl_page_center {
  justify-content: center !important;
}

/deep/ ._ehl_page_left {
  justify-content: flex-start !important;
}

/deep/ ._ehl_page_right {
  justify-content: flex-end !important;
}

/deep/ ._ehl_page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  .el-pagination {
    display: flex;
    align-items: center;

    .el-pager {
      display: flex;
      align-items: center;
    }
  }

  div {
    margin: 0 8px;
  }
}

//tabs单选标签组
/deep/ ._ehl_tabs {
  display: flex;
  align-items: center;
  width: 100%;

  ._ehl_left_arrow {
    flex-shrink: 0;
    margin: 0 10px;
    font-size: @cpt_font_size;
    cursor: pointer;
  }

  ._ehl_item_box {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: flex-start;

    ._ehl_item_select {
      color: #007aff !important;
      border-color: #007aff !important;

      i {
        color: #007aff !important;
      }
    }

    ._ehl_item {
      display: flex;
      flex-grow: 1;
      align-items: center;
      justify-content: space-between;
      height: @cpt_line_height;
      padding: 0 10px;
      margin: 0 10px 0 0;
      color: @cpt_black;
      cursor: pointer;
      background: @cpt_white;
      border: 1px solid @cpt_grey;
      border-radius: @cpt_border_radius;

      span {
        flex-grow: 1;
        width: 1px;
        margin-right: 5px;
      }

      i {
        flex-shrink: 0;
        color: #c4d0dd;
      }
    }
  }
}

//tabs多选标签组
/deep/ ._ehl_mul_tabs {
  display: flex;
  align-items: center;
  width: 100%;

  ._ehl_left_arrow {
    flex-shrink: 0;
    margin: 0 10px;
    font-size: @cpt_font_size;
    cursor: pointer;

    &.disabled {
      cursor: not-allowed;
    }
  }

  ._ehl_item_box {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: flex-start;

    ._ehl_item_select {
      color: @cpt_white !important;
      background: @cpt_main_light !important;
    }

    ._ehl_item {
      display: flex;
      flex-grow: 1;
      align-items: center;
      justify-content: space-between;
      height: @cpt_line_height;
      padding: 0 10px;
      margin: 0 10px 0 0;
      color: @cpt_black;
      cursor: pointer;
      background: @cpt_white;
      border: 1px solid @cpt_grey;
      border-radius: @cpt_border_radius;
    }
  }
}

//平铺展示
/deep/ ._ehl_tiling {
  width: 100%;
  height: 100%;

  ._ehl_tiling_ctx {
    ._ehl_tiling_line {
      display: flex;
      justify-content: space-evenly;
      width: 100%;

      ._ehl_tiling_item {
        display: flex;
        flex-grow: 1;
        justify-content: center;
        width: 1px;
      }
    }
  }

  ._ehl_tiling_nodata {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: @cpt_font_size_big;
  }
}

//搜索树
/deep/ ._ehl_tree {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  background: @cpt_white;
  border-radius: @cpt_border_radius;

  ._ehl_tree_search {
    flex-grow: 0;
    width: 100%;
    margin-bottom: 10px;
  }

  ._ehl_tree_all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    padding-bottom: 10px;
    font-size: @cpt_font_size_middle;
    line-height: initial;
    cursor: pointer;
    border-bottom: 1px solid @cpt_grey;
  }

  ._ehl_tree_box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    width: 100%;
    padding: 0 0 10px 0;
    overflow: auto;

    ._ehl_tree_root {
      flex-grow: 1;
    }

    ._ehl_tree_leaf {
      flex-grow: 1;
    }

    .el-tree {
      min-width: 100%;

      .el-tree-node__content {
        display: flex;
        height: @cpt_line_height;
      }

      & > .el-tree-node {
        & > .el-tree-node__content {
          background: @cpt_white;
          // border-top: 1px solid @cpt_grey;
        }
      }

      .el-tree-node__children {
        background: @cpt_grey_light;
      }

      // .el-tree-node:focus > .el-tree-node__content {
      //   color: @cpt_main_light !important;
      //   // background: @cpt_grey_light;
      // }

      .is-current {
        & > .el-tree-node__content {
          color: @cpt_main_light;
        }
      }

      .el-tree-node__label {
        color: @cpt_black;
      }
    }
  }

  ._ehl_tree_nodata {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 5px;
    font-size: 16px;
    border-top: 1px solid @cpt_grey_light;
  }
}

//对话框
/deep/ ._ehl_dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  min-width: 20%;
  max-width: 90%;
  min-height: 20%;
  max-height: 80%;
  margin: 0 !important;
  border-radius: @cpt_border_radius;
  box-shadow: 0 2px 4px 0 @cpt_grey_shadow;
  transform: translate(-50%, -50%);

  .el-dialog__header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid @cpt_grey_dialog_title_devide;

    .el-dialog__title {
      font-size: @cpt_grey_dialog_title_size;
      font-weight: bold;
      color: @cpt_grey_dialog_title_font;
    }
  }

  .el-dialog__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    padding: 5px 0;
    overflow: auto;
  }

  ._ehl_dialog_close {
    position: absolute;
    top: 25px;
    right: 20px;
    cursor: pointer;
  }

  ._ehl_dialog_content {
    flex-grow: 1;
    width: 100%;
    padding: 5px 20px;
    overflow: auto;
    font-size: @cpt_font_size_middle;
  }

  ._ehl_dialog_button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;

    ._ehl_dialog_btn {
      width: 80px;
    }
  }
}

//cron表达式
/deep/ ._ehl_cron {
  width: 100%;

  ._ehl_cron_out {
    display: flex;
    align-items: center;
    height: @cpt_line_height;
    padding: 0 10px;
    cursor: pointer;
    background-color: @cpt_white;
    border: 1px solid @cpt_main;
    border-radius: @cpt_border_radius;
  }
}

//穿梭框
/deep/ ._ehl_shuttle {
  display: flex;
  align-items: center;
  width: 100%;

  ._ehl_shuttle_box {
    flex-grow: 1;
    width: 1px;
    height: 100%;
    overflow: auto;
  }

  ._ehl_shuttle_left {
    ._ehl_shuttle_left_form {
      width: 100%;
      height: 100%;
    }
  }

  ._ehl_shuttle_arrow_box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin: 10px;

    ._ehl_shuttle_arrow_left {
      margin-top: 10px;
      font-size: 40px;
      color: @cpt_main;
      cursor: pointer;
      transform: rotate(180deg);
    }

    ._ehl_shuttle_arrow_right {
      font-size: 40px;
      color: @cpt_main;
      cursor: pointer;
    }
  }

  // ._ehl_shuttle_right {
  // }
}

//步骤条
/deep/ ._ehl_step {
  align-items: flex-start;

  .el-step__head {
    display: flex;
  }

  ._ehl_step_select {
    background: @cpt_main !important;
  }

  ._ehl_step_normal {
    width: 13px;
    height: 13px;
    cursor: pointer;
    background: @cpt_grey;
    border-radius: 50%;
  }

  ._ehl_step_font_select {
    color: @cpt_main !important;
  }

  ._ehl_step_font_normal {
    width: 100%;
    height: 100%;
    font-size: @cpt_font_size_middle;
    color: @cpt_black;
    cursor: pointer;
    border-radius: 50%;
  }
}

//上传组件
/deep/ ._ehl_upload {
  width: 100%;
  height: 300px;

  .el-upload {
    display: flex;
  }

  ._ehl_upload_tip {
    color: red;
  }

  .el-upload-dragger {
    width: auto;
    height: auto;
    border-radius: @cpt_border_radius;
  }
}

//富文本编辑
/deep/ ._ehl_mavon_editor {
  width: 100%;

  div {
    z-index: 1 !important;
  }
}

//可编辑div
/deep/ ._ehl_edit_div {
  width: 100%;
  padding: 10px;
  overflow: auto;
  border: 1px solid @cpt_grey;
  border-radius: @cpt_border_radius;
}

//导航栏
/deep/ ._ehl_nav_menu {
  width: 100%;
  height: @cpt_line_height;

  ._ehl_menu_common {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 100%;
    color: @cpt_grey_deep;
  }

  .is-active {
    color: @cpt_main !important;

    div {
      color: @cpt_main !important;
    }
  }

  .el-menu-item {
    ._ehl_menu_common();
  }

  .el-submenu {
    ._ehl_menu_common();

    .is-active {
      color: @cpt_main !important;

      div {
        color: @cpt_main !important;
      }
    }

    .el-submenu__title {
      ._ehl_menu_common();

      .el-submenu__icon-arrow {
        display: flex;
        align-items: center;
        height: 100%;
      }
    }

    // .el-menu-item {
    //   ._ehl_menu_common();
    // }
  }
}
// 可折叠导航栏
/deep/ ._ehl_menu {
  .is-active {
    color: @cpt_main !important;
  }

  .el-menu-item {
    i {
      margin-right: 10px;
      font-size: 16px;
    }
  }

  .el-submenu {
    .el-submenu__title {
      i {
        margin-right: 10px;
        font-size: 16px;
      }
    }
  }

  &:not(.el-menu--collapse) {
    width: 240px;
    min-height: 400px;
  }
}

//大数据选择组件
/deep/ ._ehl_big_select {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: @cpt_white;

  ._ehl_big_select_title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    line-height: 100%;
    color: #3b424c;
    background: #f2f4f8;
  }

  ._ehl_big_select_left_form {
    padding: 20px;
  }

  ._ehl_big_select_left {
    flex-grow: 1;
    width: 1px;
    height: 100%;
    overflow: auto;
    border: 1px solid @cpt_grey;
    border-radius: @cpt_border_radius 0 0 @cpt_border_radius;
  }

  ._ehl_big_select_right {
    flex-grow: 1;
    width: 1px;
    height: 100%;
    overflow: auto;
    border: 1px solid @cpt_grey;
    border-left: none;
    border-radius: 0 @cpt_border_radius @cpt_border_radius 0;
  }
}

//excel表格
/deep/ ._excel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: white;

  .confirm {
    flex-shrink: 0;
    width: 100%;
    margin-bottom: 20px;
  }

  ._excel_box {
    flex-grow: 1;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  ._export_excel {
    position: absolute;
    right: 120px;
    bottom: 80px;
    z-index: 5;
    font-size: 40px;
    color: @cpt_main;
    cursor: pointer;
  }

  ._add_excel {
    position: absolute;
    right: 60px;
    bottom: 80px;
    z-index: 5;
    font-size: 40px;
    color: @cpt_main;
    cursor: pointer;
  }

  // /deep/ .luckysheet-work-area {
  //   height: auto !important;
  // }

  // /deep/ .luckysheet_info_detail {
  //   display: none !important;
  // }
}
